package com.p.lib.entity;

/**
 * Created by Administrator on 2018/5/31 0031.
 */

public class BaseResponse {

    public static final int CODE_SUCCESS = 200;

    /**
     * 返回码 200:成功 300或其他: 失败
     */
    private int code;
    /** 信息 */
    private String msg;
    /**
     * 总数
     */
    public int total;


    public boolean isSuccess(){
        return code == CODE_SUCCESS;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return msg;
    }

    public void setMessage(String msg) {
        this.msg = msg;
    }
}
